/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Factory;

import base.*;
import topping.*;
import Decorator.*;
import admin.CNWareHouse;
import admin.WareHouse;
import payment.AUGST;
import payment.CNGST;
import payment.GSTStrategy;

/**
 *
 * @author LL
 */
public class CNPizzaFactory extends PizzaFactory {

    public Base createBase(String baseName) {
        String bn = "CN" + baseName;
        return new AUBase(bn, this.tPizzaToppingInfo.pizzaToppingInfo.get(bn).doubleValue());
    }

    public ToppingDecorator createTopping(String toppingName, PizzaBase tPizzaBase) {
        String tn = "CN" + toppingName;
        return new CNTopping(tn, this.tPizzaToppingInfo.pizzaToppingInfo.get(tn).doubleValue(), tPizzaBase);
    }

    public GSTStrategy createGSTStrategy() {
        return new CNGST();
    }

    public WareHouse createWareHouse() {
        return new CNWareHouse();
    }
}
